package com.prs.crm.domain.approval;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.courser.struts.BaseAction;

import com.prs.crm.domain.BaseEntity;
/**
 * @author 廖苹宏
 * @version 2012-5-21 10:04:46 审批流程
 * */
@Entity
@Table(name="app_Process")
public class Process extends BaseEntity{
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	private String name;
	private String type; //状态
	@ManyToOne
	private ProcessType processType;  //流程类型
	private String yunxu;        //使用人
	private String xiugai;       //允许修改人
	private String reMark;       //说明
	private Boolean updatepro;   //是否允许申请人修改流程（1允许，0不允许）
	private Boolean upload;      //是否允许申请人上传附件（1允许，0不允许）
	private String updatepeo;       //修改人
//	private String updateTime;   //修改时间
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public ProcessType getProcessType() {
		return processType;
	}
	public void setProcessType(ProcessType processType) {
		this.processType = processType;
	}
	public String getYunxu() {
		return yunxu;
	}
	public void setYunxu(String yunxu) {
		this.yunxu = yunxu;
	}
	public String getXiugai() {
		return xiugai;
	}
	public void setXiugai(String xiugai) {
		this.xiugai = xiugai;
	}
	public String getReMark() {
		return reMark;
	}
	public void setReMark(String reMark) {
		this.reMark = reMark;
	}
	public Boolean getUpdatepro() {
		return updatepro;
	}
	public void setUpdatepro(Boolean updatepro) {
		this.updatepro = updatepro;
	}
	public Boolean getUpload() {
		return upload;
	}
	public void setUpload(Boolean upload) {
		this.upload = upload;
	}
	public String getUpdatepeo() {
		return updatepeo;
	}
	public void setUpdatepeo(String updatepeo) {
		this.updatepeo = updatepeo;
	}
	
//	public String getUpdateTime() {
//		return updateTime;
//	}
//	public void setUpdateTime(String updateTime) {
//		this.updateTime = updateTime;
//	}
	
}
